package org.example.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;
import org.example.system.common.base.BaseEntity;

/**
 * 租户表
 * @TableName biz_tenant
 */
@TableName(value ="biz_tenant")
@Data
public class Tenant extends BaseEntity implements Serializable {
    /**
     * 小程序用户ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户昵称
     */
    @TableField(value = "nick_name")
    private String nickName;

    /**
     * 微信用户openid
     */
    @TableField(value = "open_id")
    private String openId;

    /**
     * 用户头像
     */
    @TableField(value = "avatar_url")
    private String avatarUrl;

    /**
     * 手机号
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 真实姓名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 身份证号
     */
    @TableField(value = "id_no")
    private String idNo;

    /**
     * 驾驶证图片地址
     */
    @TableField(value = "driving_cert")
    private String drivingCert;

    /**
     * 0：未认证 1:认证成功 2：认证失败
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 逻辑删除标识 0表示有效 1表示删除
     */
    @TableField(value = "deleted")
    private Integer deleted;

    /**
     * 地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 身份证正面
     */
    @TableField(value = "id_card_front_path")
    private String idCardFrontPath;

    /**
     * 身份证反面
     */
    @TableField(value = "id_card_back_path")
    private String idCardBackPath;

    @TableField(exist = false)
    private String accessToken;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}
